<script type="text/javascript" src="{$smarty.const.THEME_RELATIVE}modules/videomodule/js/VideoManager.js"></script>

<h1>{$_TR.video_manager_title}</h1>
	<table id="VideoManager" toolbar="#toolbar"></table>
	
	<div id="toolbar">
		<a href="{link action=video_edit}" class="easyui-linkbutton" iconCls="icon-add" plain="true">{$_TR.new_video}</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="__AB_PDoremi_VideoManager_Edit('VideoManager')">{$_TR.edit_video}</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="__AB_PDoremi_VideoManager_Remove('VideoManager')">{$_TR.remove_video}</a>
	</div>

	
	<script>
		var video_link_url='{$smarty.const.URL_FULL}index.php?module=videomodule&action=video_getjson&src={$__loc->src}{literal}&ajax_action=1';
		$(function(){
			__AB_PDoremi_VideoManager_SetDefaultSource({/literal}'{$__loc->src}'{literal})
			__AB_PDoremi_VideoManager_Init("VideoManager", video_link_url);
		});
	</script>
{/literal}
